separator: Initialize accessible state
authorMatthias Clasen <mclasen@redhat.com>
Mon, 27 Jul 2020 23:38:01 +0000 (19:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Jul 2020 01:18:10 +0000 (21:18 -0400)
The orientation property of separators should be
set ab initio.

gtk/gtkseparator.c

index fe9ac5843765f73ad1e5e5226a4cfeaa14054d2b..c6b391fe8f2012fc35c77e40213471d6ba74c65a 100644 (file)
@@ -139,6 +139,9 @@ gtk_separator_init (GtkSeparator *separator)
 
   gtk_widget_update_orientation (GTK_WIDGET (separator),
                                  separator->orientation);
+  gtk_accessible_update_property (GTK_ACCESSIBLE (separator),
+                                  GTK_ACCESSIBLE_PROPERTY_ORIENTATION, separator->orientation,
+                                  -1);
 }
 
 static void